#ifndef _MCU_DRIVERS_INNERFLASH_H_
#define _MCU_DRIVERS_INNERFLASH_H_

//读取低16位
unsigned int InnerFlash_ReadFlashLow(unsigned int TablePage, unsigned int TableOffset);

//读取高16位，仅低8位有效，高8位始终为0
unsigned int InnerFlash_ReadFlashHigh(unsigned int TablePage, unsigned int TableOffset);

//擦除0x000800倍数起始的1024个字(2048个地址，一页)
unsigned int InnerFlash_EraseFlashPage(unsigned int TablePage, unsigned int TableOffset);

//将数组写入flash，每个字(2个地址)写入1个16bits数据
void InnerFlash_WriteFlashNoHigh(unsigned int TablePage, unsigned int TableOffset,unsigned int *data,unsigned int length);

#endif